package com.jochen.core.android

import android.app.Activity
import android.os.Build
import android.view.WindowManager

object ScreenUtils{
    
    fun hideBlackBar(activity: Activity){
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
            val lp = activity.window.attributes
            lp.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
			activity.window.attributes = lp
        }
    }
}